Clarify the usage of SEED_USERNAME and SEED_PASSWORD when seeding the database

Dominik Sander 9 年之前
父节点
当前提交
302221af4a
共有 1 个文件被更改,包括 5 次插入7 次删除
  1. 5 7
      doc/manual/installation.md

+ 5 - 7
doc/manual/installation.md

@@ -218,14 +218,12 @@ Change the Unicorn config if needed, the [requirements.md](./requirements.md#uni
218 218
     # Migrate to the latest version
219 219
     sudo -u huginn -H bundle exec rake db:migrate RAILS_ENV=production
220 220
 
221
-    # Create admin user and example agents
222
-    sudo -u huginn -H bundle exec rake db:seed RAILS_ENV=production
221
+    # Create admin user and example agents using the default admin/password login
222
+    sudo -u huginn -H bundle exec rake db:seed RAILS_ENV=production SEED_USERNAME=admin SEED_PASSWORD=password
223 223
 
224 224
 When done you see `See the Huginn Wiki for more Agent examples!  https://github.com/cantino/huginn/wiki`
225 225
 
226
-**Note:** This will create an initial user, you can set the username and password by supplying it in environmental variables `SEED_USERNAME` and `SEED_PASSWORD` as seen below. If you don't set the password (and it is set to the default one) please wait with exposing Huginn to the public internet until the installation is done and you've logged into the server and changed your password.
227
-
228
-    sudo -u huginn -H bundle exec rake db:seed RAILS_ENV=production SEED_USERNAME=admin SEED_PASSWORD=password
226
+**Note:** This will create an initial user, you can change the username and password by supplying it in environmental variables `SEED_USERNAME` and `SEED_PASSWORD` as seen above. If you don't change the password (and it is set to the default one) please wait with exposing Huginn to the public internet until the installation is done and you've logged into the server and changed your password.
229 227
 
230 228
 ### Compile Assets
231 229
 
@@ -299,8 +297,8 @@ You should receive `syntax is okay` and `test is successful` messages. If you re
299 297
 
300 298
 Visit YOUR_SERVER in your web browser for your first Huginn login. The setup has created a default admin account for you. You can use it to log in:
301 299
 
302
-    admin
303
-    password
300
+    admin (or your SEED_USERNAME)
301
+    password (or your SEED_PASSWORD)
304 302
 
305 303
 
306 304
 **Enjoy!** :sparkles: :star: :fireworks: